package com.xuzhijie.pms.entity.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
public class AdministratorVo {
    private String id;
    private String account;
    private String name;
    private String mobile;
    private String face;
    private String authority;
    private String identificationCard;
    private String apartment;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Boolean status;

    public AdministratorVo(int statusTemp,int authorityTemp) {
        if (statusTemp == 1){
            this.status = true;
        }else{
            this.status = false;
        }
        if (authorityTemp == 1){
            this.authority = "超级管理员";
        }else if(authorityTemp == 2){
            this.authority = "管理员";
        }
    }
}
